import request from '@/utils/request'

// 查询题库收藏记录列表
export function listQbmsRecordFavorite(query) {
  return request({
    url: '/qbms/qbmsRecordFavorite/list',
    method: 'get',
    params: query
  })
}

// 查询题库收藏记录详细
export function getQbmsRecordFavorite(id) {
  return request({
    url: '/qbms/qbmsRecordFavorite/' + id,
    method: 'get'
  })
}

// 新增题库收藏记录
export function addQbmsRecordFavorite(data) {
  return request({
    url: '/qbms/qbmsRecordFavorite',
    method: 'post',
    data: data
  })
}

// 修改题库收藏记录
export function updateQbmsRecordFavorite(data) {
  return request({
    url: '/qbms/qbmsRecordFavorite',
    method: 'put',
    data: data
  })
}

// 删除题库收藏记录
export function delQbmsRecordFavorite(id) {
  return request({
    url: '/qbms/qbmsRecordFavorite/' + id,
    method: 'delete'
  })
}
